mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
provide rel=alternate link if no reshare content in post
This commit is contained in:
parent
5c379b4d35
commit
e812836a60
1 changed files with 5 additions and 0 deletions
|
@ -811,6 +811,7 @@ function feed_get_reshare(&$res,$item) {
|
|||
}
|
||||
|
||||
$attach = $share['links'];
|
||||
|
||||
if($attach) {
|
||||
foreach($attach as $att) {
|
||||
if($att['rel'] === 'alternate') {
|
||||
|
@ -845,6 +846,10 @@ function feed_get_reshare(&$res,$item) {
|
|||
}
|
||||
}
|
||||
|
||||
if((! $body) && ($share['alternate'])) {
|
||||
$body = $share['alternate'];
|
||||
}
|
||||
|
||||
$res['body'] = "[share author='" . urlencode($share['author']) .
|
||||
"' profile='" . $share['profile'] .
|
||||
"' avatar='" . $share['avatar'] .
|
||||
|
|
Loading…
Reference in a new issue