forked from GNUsocial/gnu-social
[CORE][UI] Made attachment actions and its subactions be able to identify attachments by id and by filehash. Changed the url stored in the DB to be attachment//view
This commit is contained in:
committed by
Diogo Cordeiro
parent
9536f2a909
commit
aa5c6bbf08
@@ -614,7 +614,7 @@ class File extends Managed_DataObject
|
||||
if ($use_local !== false) {
|
||||
if (is_string($this->filename) || !empty($this->filename)) {
|
||||
// A locally stored file, so let's generate a URL for our instance.
|
||||
return getAttachmentViewUrl();
|
||||
return $this->getAttachmentViewUrl();
|
||||
}
|
||||
if ($use_local) {
|
||||
// if the file wasn't stored locally (has filename) and we require a local URL
|
||||
|
Reference in New Issue
Block a user