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

[Mastodon] notificationソースの追加 #342

Merged
merged 8 commits into from
Oct 28, 2023

Conversation

shibafu528
Copy link
Owner

@shibafu528 shibafu528 commented Oct 21, 2023

refs #340

Mastodonの通知一覧を表示するためのYQソースを追加します。

通知とはAPI GET /api/v1/notifications で取得できるデータを指します。プッシュ通知とは関係がありません。

known issue

  • ListViewのスクロールパフォーマンスが悪い。
  • タイムラインタップ時の動作設定は返信と投稿通知にのみ適用される。他のイベントはカスタマイズできない。

query example

すべてのアカウントの通知を表示

from notification

ログイン済アカウント yukari4a@ertona.net が受け取った通知を表示

from notification:"yukari4a@ertona.net"

ふぁぼられ通知のみを抽出して表示

from notification where (eq notification.type "favourite")

投稿通知のみを抽出して表示

Mastodon WebUIでプロフィールを表示して、🔔 のボタンを押したら受け取れる通知のことです。

from notification where (eq notification.type "status")

yukari4a@ertona.net から発信された投稿通知のみを抽出して表示

from notification where (and (eq notification.type "status")
                             (eq user.screenName "yukari4a@ertona.net"))

@shibafu528
Copy link
Owner Author

通知を表現する抽象みたいな感じで考えなおしたほうがいいかもしれないと思った

https://ertona.net/@shibafu528/111271190527279017
https://ertona.net/@shibafu528/111271239608934236
https://ertona.net/@shibafu528/111271242216230432
https://ertona.net/@shibafu528/111271249434245788

@shibafu528
Copy link
Owner Author

一旦まったく抽象化せずに実装してみた

@shibafu528 shibafu528 force-pushed the feature/mastodon-notification-timeline branch from ee68e83 to e9e19e5 Compare October 22, 2023 12:38
@shibafu528
Copy link
Owner Author

Twitter時代にストリーミングで着信した通知を表示していたHistoryタブに役割を与えられそうだったので、Notificationタブと改名して通知一覧表示用に仕様変更した。

@shibafu528 shibafu528 merged commit e28390c into master Oct 28, 2023
@shibafu528 shibafu528 deleted the feature/mastodon-notification-timeline branch October 28, 2023 02:04
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.

None yet

1 participant