Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add social account feed #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

highTowerSU
Copy link

Hello,

i have added the possibility to show some social account feed aka @[email protected]

Regards

highTower

@@ -188,13 +188,13 @@ function M.task(starts, ends, config, x1, y1, x2, y2)

local age = api.clock.unix() - toot.created_at
if age < 100 then
age = string.format("%ds", age)
age = string.format("%d Sekunden", age)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These localization changes should be configurable. This plugin is used outside of german-speaking areas as well.

@@ -120,7 +120,7 @@ function M.updated_tootlist_json(toots)
end
if include_in_scroller and not only_contains_hashtags(toot.content) then
scroller[#scroller+1] = {
text = "@" .. toot.account.acct .. ": " .. toot.content,
text = toot.content,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be configurable as well. Ideally, the default would be to show the account for hashtag searches, and to hide it for user searches.

r.raise_for_status()

else:

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove those empty lines before and after the else:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants