diff options
author | Mario <mario@mariovavti.com> | 2025-04-04 10:51:51 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-04-04 10:51:51 +0000 |
commit | a822e94f9b3020a42ce3f184c9942af6c2cd45f6 (patch) | |
tree | bacc580c16cb927f98d5b700dc16896b07af7ecb /Zotlabs | |
parent | 484971c90a33c3ffcc46c119fc9eeba75a5821aa (diff) | |
download | volse-hubzilla-a822e94f9b3020a42ce3f184c9942af6c2cd45f6.tar.gz volse-hubzilla-a822e94f9b3020a42ce3f184c9942af6c2cd45f6.tar.bz2 volse-hubzilla-a822e94f9b3020a42ce3f184c9942af6c2cd45f6.zip |
move jot popup handling to template, port photo selector to vanilla javascript and enable it for comments if applicable
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Embedphotos.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index e0db98eb3..d0fa1e587 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -803,7 +803,7 @@ class ThreadItem { '$eduline' => t('Underline'), '$edquote' => t('Quote'), '$edcode' => t('Code'), - '$edimg' => t('Image'), + '$edimg' => t('Embed (existing) photo from your photo albums'), '$edatt' => t('Attach/Upload file'), '$edurl' => t('Insert Link'), '$edvideo' => t('Video'), diff --git a/Zotlabs/Module/Embedphotos.php b/Zotlabs/Module/Embedphotos.php index ed5b24724..767cfbb92 100644 --- a/Zotlabs/Module/Embedphotos.php +++ b/Zotlabs/Module/Embedphotos.php @@ -43,7 +43,7 @@ class Embedphotos extends \Zotlabs\Web\Controller { $arr = explode('/', $href); $resource_id = array_pop($arr); $x = self::photolink($resource_id); - if($x) + if($x) json_return_and_die(array('status' => true, 'photolink' => $x, 'resource_id' => $resource_id)); json_return_and_die(array('errormsg' => 'Error retrieving resource ' . $resource_id, 'status' => false)); } |