technicat on Nostr: First use of #tootsdk platform detection to support both #pixelfed and #mastodon if ...
First use of #tootsdk platform detection to support both #pixelfed and #mastodon
if toot.instance?.flavour == .pixelfed {
AllNotificationsPage()
} else {
NotificationsTab()
}
Published at
2023-09-06 04:21:02Event JSON
{
"id": "79c7e8249f313ba49100a30215bfa661600fea3759ac3e62207cdb2a2ef63a5d",
"pubkey": "80b55abec08c4f8750d1f8a5d08db4aca921d532a490c3c543d850c18bd65f6e",
"created_at": 1693974062,
"kind": 1,
"tags": [
[
"t",
"tootsdk"
],
[
"t",
"pixelfed"
],
[
"t",
"Mastodon"
],
[
"proxy",
"https://universeodon.com/users/technicat/statuses/111016284172508304",
"activitypub"
]
],
"content": "First use of #tootsdk platform detection to support both #pixelfed and #mastodon\n\n if toot.instance?.flavour == .pixelfed {\n AllNotificationsPage()\n } else {\n NotificationsTab()\n }",
"sig": "2fe2d9c6a4baf7c8cc889fe3b48d3e137623f41567d5ede4faadae1b99d6aba3cef980000fce8b07bd639d905c2519166cf2452c173b00f3a39f071ef8e37093"
}