mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 05:13:53 +01:00
Fixes invalid authorname in explore (#4054)
* Fixes #3341, #4018 * Defined two feild author and user in Media and used them at the corresponding places Minor bug fixes -displaying userName in uploadedBy. -modified HTML parsing in getArtist. -Replaced creator with author. * Fixes #3341, #4018 * Defined two feild author and user in Media and used them at the corresponding places Minor bug fixes -displaying userName in uploadedBy. -modified HTML parsing in getArtist. -Replaced creator with author.
This commit is contained in:
parent
f1b40728b2
commit
d720750ab4
17 changed files with 56 additions and 61 deletions
|
|
@ -55,13 +55,15 @@ class Media constructor(
|
|||
val licenseUrl: String? = null,
|
||||
/**
|
||||
* Gets the name of the creator of the file.
|
||||
* @return creator name as a String
|
||||
* @return author name as a String
|
||||
*/
|
||||
/**
|
||||
* Sets the creator name of the file.
|
||||
* @param creator creator name as a string
|
||||
* Sets the author name of the file.
|
||||
* @param author creator name as a string
|
||||
*/
|
||||
var creator: String? = null,
|
||||
var author: String? = null,
|
||||
|
||||
var user:String?=null,
|
||||
|
||||
/**
|
||||
* Gets the categories the file falls under.
|
||||
|
|
@ -83,12 +85,13 @@ class Media constructor(
|
|||
categories: List<String>?,
|
||||
filename: String?,
|
||||
fallbackDescription: String?,
|
||||
creator: String?
|
||||
author: String?, user:String?
|
||||
) : this(
|
||||
filename = filename,
|
||||
fallbackDescription = fallbackDescription,
|
||||
dateUploaded = Date(),
|
||||
creator = creator,
|
||||
author = author,
|
||||
user=user,
|
||||
categories = categories,
|
||||
captions = captions
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue