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:
Ashish 2020-12-01 19:26:41 +05:30 committed by GitHub
parent f1b40728b2
commit d720750ab4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 56 additions and 61 deletions

View file

@ -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
)