mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
Fix empty username (#6209)
* revert changes from #5860 Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * read author prop instead Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * Use user prop if author is empty or null Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> * fix test Signed-off-by: parneet-guraya <gurayaparneet@gmail.com> --------- Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
32d485cc51
commit
972bf785f1
8 changed files with 29 additions and 26 deletions
|
|
@ -111,7 +111,7 @@ class DeleteHelper @Inject constructor(
|
|||
|
||||
val userPageString = "\n{{subst:idw|${media.filename}}} ~~~~"
|
||||
|
||||
val creator = media.author
|
||||
val creator = media.getAuthorOrUser()
|
||||
?: throw RuntimeException("Failed to nominate for deletion")
|
||||
|
||||
return pageEditClient.prependEdit(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue