[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 47865bd215 30/52: tl--prev-toot-id: don't assume
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 47865bd215 30/52: tl--prev-toot-id: don't assume our funs return anything. |
Date: |
Mon, 30 Oct 2023 16:01:26 -0400 (EDT) |
branch: elpa/mastodon
commit 47865bd21551616d5d149afa6c574b2bfd0f118f
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>
tl--prev-toot-id: don't assume our funs return anything.
fixes a bug that would break thread loading, perhaps because an ancestor
toot
wasn't there when it was supposed to be, so we were check for prev id when
there was no prev toot. maybe caused by viewing threads that include toots
by
ppl on blocked servers, which don't display.
---
lisp/mastodon-tl.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 3e4e31ed8f..e279ee3286 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1303,10 +1303,13 @@ Runs `mastodon-tl--render-text' and fetches poll or
media."
(defun mastodon-tl--prev-item-id ()
"Return the id of the last toot inserted into the buffer."
- (let ((prev-pos
- (1- (save-excursion
- (previous-single-property-change (point) 'base-item-id)))))
- (get-text-property prev-pos 'base-item-id)))
+ (let* ((prev-change
+ (save-excursion
+ (previous-single-property-change (point) 'base-toot-id)))
+ (prev-pos
+ (when prev-change (1- prev-change))))
+ (when prev-pos
+ (get-text-property prev-pos 'base-toot-id))))
(defun mastodon-tl--after-reply-status (reply-to-id)
"T if REPLY-TO-ID is equal to that of the last toot inserted in the bufer."
- [nongnu] elpa/mastodon 1e40c8d19f 17/52: docstrings, autoloads, (continued)
- [nongnu] elpa/mastodon 1e40c8d19f 17/52: docstrings, autoloads, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 0bd2bea47d 27/52: override shr-linkmap 'u' binding, to update. 'w' is copy-url already, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 78ff4a75ea 36/52: item-type list for list, not user (stray value), ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 826c228d09 34/52: edit list: exclusive proper true/false strings, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon cf7b3710c6 48/52: Merge branch 'develop', ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 1ce402833e 50/52: flychecks, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon a8c80d25b7 52/52: update cmd index, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 7676946d83 51/52: update cmd index, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon e954ae162c 31/52: no y-or-n-p for (un)bookmarking, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon f7ec0268e0 32/52: FIX #502. add "exclusive" param to create/edit lists., ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 47865bd215 30/52: tl--prev-toot-id: don't assume our funs return anything.,
ELPA Syncer <=
- [nongnu] elpa/mastodon f1bc8d83d4 35/52: display replies policy & exclusive status for lists, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 3dc21b91b1 38/52: tl--update: add lists, and note abt what we shd actually do, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 40e8123b84 47/52: Merge branch 'triage-response-data' into develop, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon e380f74a44 49/52: profile--item-json is no cmd, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 5f237982e5 40/52: a quick hack to toggle display of a user's boosts in timeline. FIX# 503, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 87a6bc9d7d 45/52: readme contributing, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 31643d6f63 16/52: Merge branch 'minor-view' into develop, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon a53d9824fe 19/52: change some error calls to user-error calls, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon 4a9c2015ee 26/52: fix elpaignore, ELPA Syncer, 2023/10/30
- [nongnu] elpa/mastodon c3db1170e8 33/52: edit toot at point: do-if-item-strict, ELPA Syncer, 2023/10/30