aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-05 17:21:13 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-05 17:21:13 +0100
commit5613c11e037ceb1d9beab26a48f2958c669ea029 (patch)
tree385ad25fb8a69e7277bd1e9fdd31180390461e3e /lisp/mastodon.el
parentf678fc83f777ef40e948c176b1343e4de3764856 (diff)
parent8f5cb76677836703f0b554fe5ab669ba1e9d6d91 (diff)
Merge branch 'develop'
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index e50d5c1..671c88d 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -1,11 +1,13 @@
-;;; mastodon.el --- Client for Mastodon -*- lexical-binding: t -*-
+;;; mastodon.el --- Client for Mastodon, a federated social network -*- lexical-binding: t -*-
;; Copyright (C) 2017-2019 Johnson Denen
+;; Copyright (C) 2020-2022 Marty Hiatt
;; Copyright (C) 2021 Abhiseck Paira <abhiseckpaira@disroot.org>
;; Author: Johnson Denen <johnson.denen@gmail.com>
+;; Marty Hiatt <martianhiatus@riseup.net>
;; Maintainer: Marty Hiatt <martianhiatus@riseup.net>
;; Version: 1.0.0
-;; Package-Requires: ((emacs "27.1") (request "0.3.0") (persist "0.4"))
+;; Package-Requires: ((emacs "27.1") (request "0.3.0") (persist "0.4") (ts "0.3"))
;; Homepage: https://codeberg.org/martianh/mastodon.el
;; This file is not part of GNU Emacs.
@@ -29,7 +31,7 @@
;; mastodon.el is an Emacs client for Mastodon <https://github.com/tootsuite/mastodon>,
;; the federated microblogging social network. It also works with Pleroma instances.
-;; see the readme file at https://codeberg.org/martianh/mastodon.el for set up and usage details.
+;; See the readme file at https://codeberg.org/martianh/mastodon.el for set up and usage details.
;;; Code:
(require 'cl-lib) ; for `cl-some' call in mastodon
@@ -37,6 +39,8 @@
(require 'mastodon-http)
(require 'mastodon-toot)
(require 'url)
+(require 'thingatpt)
+(require 'shr)
(declare-function discover-add-context-menu "discover")
(declare-function emojify-mode "emojify")
@@ -280,7 +284,7 @@ If a status or account is found, load it in `mastodon.el', if
not, just browse the URL in the normal fashion."
(interactive)
(let* ((query (or query-url
- (url-get-url-at-point)
+ (thing-at-point-url-at-point)
(get-text-property (point) 'shr-url)
(read-string "Lookup URL: "))))
(if (not (mastodon--masto-url-p query))