https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1f7ffce
)
Merge pull request #6377 from annando/ostatus-notice
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Fri, 4 Jan 2019 16:28:31 +0000
(11:28 -0500)
committer
GitHub
<noreply@github.com>
Fri, 4 Jan 2019 16:28:31 +0000
(11:28 -0500)
Prevent a notice ... again
src/Protocol/OStatus.php
patch
|
blob
|
history
diff --git
a/src/Protocol/OStatus.php
b/src/Protocol/OStatus.php
index
1a6f748
..
1a6ce23
100644
(file)
--- a/
src/Protocol/OStatus.php
+++ b/
src/Protocol/OStatus.php
@@
-1228,7
+1228,7
@@
class OStatus
{
$siteinfo = BBCode::getAttachedData($body);
- if (($siteinfo["type"] == "photo")) {
+ if (($siteinfo["type"] == "photo")
&& (!empty($siteinfo["preview"]) || !empty($siteinfo["image"]))
) {
if (isset($siteinfo["preview"])) {
$preview = $siteinfo["preview"];
} else {