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

misskey service ignoring visibility #1251

Closed
Albirew opened this issue Dec 8, 2024 · 11 comments · Fixed by #1257
Closed

misskey service ignoring visibility #1251

Albirew opened this issue Dec 8, 2024 · 11 comments · Fixed by #1257
Labels

Comments

@Albirew
Copy link

Albirew commented Dec 8, 2024

📣 Notification Service(s) Impacted
Misskey

🐞 Describe the bug
since wiki page doesn't show how visibility parameter is used in syntax, i assumed misskey://{token}@{host}/{visibility}
...and visibility parameter got magnificently ignored

💡 Screenshots and Logs

2024/12/08 18:46:28,000 - SENDING - [{"title": "Notification - https://changedetection.io/CHANGELOG.txt", "body": "https://changedetection.io/CHANGELOG.txt had a change.\n---\n(changed) Example text: change detection is cool\n(changed) Example text: some more examples\n(into) Example text: change detection is fantastic\n(into) Example text: even more examples\n(into) Example text: a lot more examples\n---", "url": "misskeys://REDACTED@REDACTED/private?avatar_url=https://raw.githubusercontent.com/dgtlmoon/changedetection.io/master/changedetectionio/static/images/avatar-256x256.png", "body_format": "markdown"}]

Screenshot 2024-12-08 at 18-46-52 Fil REDACTED

PS: private notes shoud have a letter icon next to date

💻 Your System Details:

🔮 Additional context
fresh install using provided docker-compose file

@Albirew Albirew added the bug label Dec 8, 2024
@caronc
Copy link
Owner

caronc commented Dec 8, 2024

Magnificantly ignored indeed; just wasn't requested at the time. The current implementation just posts basic messages, but can be expanded to support more options if needed. Not sure if this is a bug so much as it is more of an enhancment.

@caronc caronc added enhancement and removed bug labels Dec 8, 2024
@Albirew
Copy link
Author

Albirew commented Dec 8, 2024

oh, i filled it as a bug since the parameter exists in documentation, but an enhancement is fine, too =)

@caronc
Copy link
Owner

caronc commented Dec 8, 2024

You're right! 🫥

@caronc caronc added bug and removed enhancement labels Dec 8, 2024
@Albirew
Copy link
Author

Albirew commented Dec 9, 2024

after some search, i found in

('misskeys://access_token@hostname?visibility=private', {

now i have my arg syntax, let's try it using misskeys://{token}@{host}?visibility={visibility}
result:

2024/12/09 22:21:59,000 - SENDING - null
b'{"error":{"message":"Invalid param.","code":"INVALID_PARAM","id":"3d81ceae-475f-4600-b2a8-2bc116157532","kind":"client","info":{"param":"#/properties/visibility/enum","reason":"must be equal to one of the allowed values"}}}'
2024-12-09 22:21:59,209 - DEBUG - Response Details:
2024-12-09 22:21:59,209 - WARNING - Failed to send Misskey notification: Bad Request - Unsupported Parameters., error=400.
2024-12-09 22:21:59,171 - DEBUG - Misskey Payload: {'i': 'REDACTED', 'text': 'Notification - https://changedetection.io/CHANGELOG.txt\r\nhttps://changedetection.io/CHANGELOG.txt had a change.\n---\n(changed) Example text: change detection is cool\n(changed) Example text: some more examples\n(into) Example text: change detection is fantastic\n(into) Example text: even more examples\n(into) Example text: a lot more examples\n---', 'visibility': 'private'}
2024-12-09 22:21:59,171 - DEBUG - Misskey GET URL: https://REDACTED/api/notes/create (cert_verify=True)
2024-12-09 22:21:59,171 - DEBUG - Loaded Misskey URL: misskeys://y...F@REDACTED/?visibility=private&format=text&overflow=upstream

it looks like visibility parameter has been taken into account, but notification sending still failed as it looks like visibility is... not supported?

@caronc
Copy link
Owner

caronc commented Dec 9, 2024

I'll look into this when I can; thank you for sharing the update 🙏

@caronc
Copy link
Owner

caronc commented Dec 15, 2024

According to here and here, private is no longer an enum type. If anything, the change to Apprise would be to remove support for it now.

EDIT: Perhaps it's been renamd to direct (other website says its specified; so documentation conflicts) I will start with specifiedsince those docs appear to be more recent. Will send PR for test/review.

@caronc
Copy link
Owner

caronc commented Dec 15, 2024

Please see attached PR and help test if you can 🙏

@caronc caronc linked a pull request Dec 15, 2024 that will close this issue
4 tasks
@Albirew
Copy link
Author

Albirew commented Dec 16, 2024

Thanks. Is it possible to also edit wiki page to :

  • remove private references
  • add a table to explain all visibility parameters
  • adding visibility flag to example ("misskeys://misskey.sda1.net/abcdefghijklmn?visibility=home")

(people outside project cannot edit or PR wiki, apparently)

@caronc
Copy link
Owner

caronc commented Dec 17, 2024

I updated the wiki, I'll add your example suggestion soon

@Albirew
Copy link
Author

Albirew commented Dec 17, 2024

Perfect 👍

Ah, you wrote direct in wiki, but it should be specified
specified is working but direct doesn't:

2024-12-17 19:34:53,471 - ERROR - Could not load Misskey URL: misskeys://y...F@s...a?visibility=direct
You must specify at least one server URL or populated configuration file.
Try 'apprise --help' for more information.

@caronc
Copy link
Owner

caronc commented Dec 17, 2024

Thanks, i updated this! Good catch.

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

Successfully merging a pull request may close this issue.

2 participants