mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[TrelloBridge] Fix actions with missing image urls (#987)
When an action is added then removed the image url properties of that action are missing
This commit is contained in:
parent
8801ac9e64
commit
f81d1b0846
@ -568,7 +568,9 @@ class TrelloBridge extends BridgeAbstract {
|
|||||||
|
|
||||||
foreach($entities as $entity_name => $entity) {
|
foreach($entities as $entity_name => $entity) {
|
||||||
$type = $entity->type;
|
$type = $entity->type;
|
||||||
if($type === 'attachmentPreview' && !$textOnly) {
|
if($type === 'attachmentPreview'
|
||||||
|
&& !$textOnly
|
||||||
|
&& isset($entity->originalUrl)) {
|
||||||
$string = '<p><a href="'
|
$string = '<p><a href="'
|
||||||
. $entity->originalUrl
|
. $entity->originalUrl
|
||||||
. '"><img src="'
|
. '"><img src="'
|
||||||
@ -648,7 +650,7 @@ class TrelloBridge extends BridgeAbstract {
|
|||||||
. $action->data->board->shortLink;
|
. $action->data->board->shortLink;
|
||||||
}
|
}
|
||||||
$item['content'] = $this->renderAction($action, false);
|
$item['content'] = $this->renderAction($action, false);
|
||||||
if(isset($action->data->attachment)) {
|
if(isset($action->data->attachment->url)) {
|
||||||
$item['enclosures'] = array($action->data->attachment->url);
|
$item['enclosures'] = array($action->data->attachment->url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user