aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-notifications.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-12-24 17:31:42 +0100
committermousebot <mousebot@riseup.net>2021-12-24 17:31:42 +0100
commit11352609304e1e2f328592332f31fc30cb327d8d (patch)
tree00b3434a8492b71f9420f70ea06662db9f1bc5b4 /lisp/mastodon-notifications.el
parenta164bda8719733f4a13e22ba7257ca4bcab0fb17 (diff)
parenta56e2bfcaaa7706a2b27656413170c83bffa6ef0 (diff)
Merge branch 'insert-status-refactor' into develop
Diffstat (limited to 'lisp/mastodon-notifications.el')
-rw-r--r--lisp/mastodon-notifications.el16
1 files changed, 2 insertions, 14 deletions
diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el
index c8b93a2..d0d221c 100644
--- a/lisp/mastodon-notifications.el
+++ b/lisp/mastodon-notifications.el
@@ -223,7 +223,7 @@ Status notifications are given when
"Posted"))
id)))
-(defun mastodon-notifications--insert-status (toot body author-byline action-byline &optional id)
+(defun mastodon-notifications--insert-status (toot body author-byline action-byline id)
"Display the content and byline of timeline element TOOT.
BODY will form the section of the toot above the byline.
@@ -238,19 +238,7 @@ takes a single function. By default it is
`mastodon-tl--byline-boosted'.
ID is the notification's own id, which is attached as a property."
- (let ((start-pos (point)))
- (insert
- (propertize
- (concat "\n"
- body
- " \n"
- (mastodon-tl--byline toot author-byline action-byline))
- 'toot-id id
- 'base-toot-id (mastodon-tl--toot-id toot)
- 'toot-json toot)
- "\n")
- (when mastodon-tl--display-media-p
- (mastodon-media--inline-images start-pos (point)))))
+ (mastodon-tl--insert-status toot body author-byline action-byline id))
(defun mastodon-notifications--by-type (note)
"Filters NOTE for those listed in `mastodon-notifications--types-alist'."