| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- make sure we get ID from parent if its a fave/boost
- avoid duplicates if user or booster already in mentions list
|
| |
|
|
|
|
|
|
|
| |
because we switched to using boost/fave JSON rather than parent, as
'toot-json, replies to these toots were broken (mentions, etc.)
so now we attach both bits of data and selectively pull from each.
|
|
|
|
|
| |
we already have the same test for declaring lingva-translate fun, so this
shouldn't be needed and seems to prevent our fun from loading.
|
| |
|
|
|
|
| |
this could easily be made into a macro supporting any emacs translation pkg
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
we always need all the funs for operating on individual toots so this is best.
Revert "revert require of mastodon-toot to autoloads"
This reverts commit 6a164669e0bffed67ad59c206f13651a67456127.
|
|/
|
|
|
|
| |
this will leave point on the author-byline, which is where we want it to be,
as the marker is not strictly part of the byline, and we are adding
info/actions to the author-byline.
|
|
|
|
|
| |
- use (autoload) call in mastodon.el for functions
- use autoload cookie in mastodon-tool.el for customize options.
|
| |
|
|
|
|
|
| |
we use it as a number various times so let's leave it a number, then convert
to string for display in toot info.
|
|
|
|
|
|
|
|
| |
some servers have 'max_toot_chars, but others seem to have 'max_characters,
under statuses, under configuation.
we allow for both types, but also we check our var isn't nil before trying to
check it's length, which broke toot--send in some cases.
|
| |
|
|
|
|
| |
and remove duplicate mastodon-toot-mode call.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
strictly, the 27.1 dependency is only for proper-list-p in -http.el.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
if --media-attachments is non-nil,
make sure we have non-nil media-args, and that
we have same num of -ids to attach as attachments uploaded.
|
|\| |
|
| |
| |
| |
| | |
just test that length of --media-attachments == length of --media-attachment-ids.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
this commit moves the call to -upload-attached-media into -attach-media.
upload-attached-media now uploads a single item only, whichever file has just
been selected at the prompt.
but we still use the list of attached-media to handle preview displays.
|
|/ |
|
|
|
|
| |
and fix matching for both user handle and user display name.
|
| |
|
|
|
|
|
|
|
| |
- A `progn` with a single form is redundant
- `when` doesn't need a `progn` body
- `if` has an implicit `progn` for the consequences
- I converted one cascade of `if`s into a `cond`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apparently one should not rely on "/" being the directory separator
and use the funtions from
https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Name-Components.html#File-Name-Components
instead.
The new version seems strictly better in that it won't create paths
with double slashes when `emojify-emojis-dir` already ends in a slash.
This also refines the test for `emojify-emojis-dir` to actually check
it is an existing directoy and not just an existing file, dir, or
symlink.
|
|
|
|
|
|
|
| |
<some-symbol> <a-list>)`
This is more readable and actually more efficient (maybe) since it
uses `eq` rather than `equal` as a test.
|
|
|
|
|
|
|
|
|
|
|
| |
Basically, in Emacs for each file: select all text and
`indent-region`.
- This also removes one redundant comment, and
- fixes an error with json decoding where the `json-read-from-string`
was actually not within the intended `unless` clause (which explains
the warning about "result of (string-equal "" json-string) will be
ignored" which I never understood.
|
|
|
|
|
| |
This is much cleaner than first using `defvar` immediately followed by
`make-variable-buffer-local`.
|
| |
|
|
|
|
|
|
|
|
|
| |
- adds functions to download custom emoji from mastodon-instance-url, collect
them into a list formatted as needed by emojify-user-emojis, and to update
that var with the mastodon custom emoji so that they can be used with
emojify-insert-emoji.
- for now the user has to enable these by calling -enable-custom-emoji themselves.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is mostly reflowing / reworkding docstrings to keep within 80
characters limit and adding autoloads.
There are two warning remaining that I don't understand:
- mastodon-async.el:359:16: Warning: reference to free variable
‘url-http-end-of-headers’
- mastodon-http.el:139:8: Warning: value returned from (string-equal json-string "") is unused
When adding autoloads this sorts them for better readability.
|
|
|
|
|
| |
also rename company mentions completion default value to "following" not
"followers", which is what the actual search is called and what it returns.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this obviates the need for the user to upload files before posting their toot.
- this commit makes http--post-media-attachment synchronous, so that toot-send
has to wait for it.
- in toot-send: if mastodon-toot--media-attachements is non-nil, the files it
contains are uploaded synchronously, and their returned ids are added to
toot-media-attachment-ids, which are parsed as args for the POST request to
be attached to the toot.
- then we send toot as usual.
- clear-all-attachments also clears mastodon-toot--media-attachment-ids just
in case.
- we have no more need of media-attachments-filenames, as media-attachments is
now a list and not a boolean value.
|