By design, we expect that simply importing will add the model to the loader, but we haven't created the test yet...
AmaseCocoa
@cocoa@hackers.pub · 16 following · 17 followers
I maybe use Engrish in this account
Pythonista/Author of apkit. An Modularized ActivityPub Toolkit.
main (Iceshrimp)
- @AmaseCocoa@i.amase.cc
YarukiNotFound
- amase.cc
Zenn
- @amasecocoa
Today new apmodel features:
- User can add and override (required inheritance the class) own model to loader (core models is can't override, show warning)
- apmodel supports to preload json-ld schema from local (example, schema.org, activitystreams 2.0)
I making next-version of apmodel, that uses pydantic for better validation and better loader.
Currently, this feature is either not implemented or not fully implemented:
- export to json is not avaliable
Additionally, some models have not been migrated to pydantic, so they cannot be used properly.
If you interested this, can read this branch: https://github.com/fedi-libs/apmodel/tree/pydantic
まぁPoCくらいは作ってもいいかもね
ActivityPub関係のリクエストをに別のサーバーがプロキシになって取得するようにできないかなーなんて思ったけど、信頼性とか鮮度の観点から厳しそう
やるとしたら、署名周りの問題や鮮度をどうするかっていうのが重要なポイントになる
I should more learn the English...
My first Rust project (in effect)
Since there was a library by PyO3, reading pyproject.toml wasn't too much trouble.
Fixed already in this PR, Gemini has reading wrong text...🤨
https://github.com/hackers-pub/hackerspub/pull/165#discussion_r2468149490
😂
typo? (リアクションだと他n人になってる)
ActivityPubを一から実装するのをお勧めしない理由みたいな記事書きたい
By the way, I'm anxiety because, maybe have spell miss... (don't or can't?)
I don't understand why Mastodon is not pass signature...
I'd like a json-ld library like Calamus, but Calamus doesn't seem to be actively maintained... (Even if I wanted to use Calamus, it appears to have vulnerabilities)
Currently, apmodel does not uses any JSON-LD processor.
I should test to integrate pyld for apmodel...
Implementation of RFC9421 is complete, but unit tests have not yet been created and compatibility testing with existing implementations has not yet been performed.
RFC9421 is allowed multiple signatures? I saw that now...
Within today, I finish to make first-version of RFC 9421-implementation.
I'm interesting in FEP-fe34
Currently, apkit is experiencing a critical issue... It appears there are problems with interoperability with Mastodon... I'm investigating where exactly it is failing... (https://github.com/fedi-libs/apkit/issues/19)
However, I think I'll try to sleep today... If I keep researching, my day-night reversal will probably get worse...
Today new #apkit features:
- Added synchronous client
- New Abstract class
AbstractApkitIntegration, This enables the creation of apkit integrations based on a somewhat formalized class.
today is improve the synchronous support in apkit
I currently making requets-based synchronous ActivityPub client for apkit...
I don't like FEP-044f...
I think the idea itself is good, but the problem is that it adopts an opt-in approach. First, it cannot be quoted in software that hasn't implemented it. Second, static file-based servers cannot support quoting (044f requires sending a QuoteAuthorization when approving a quote). I've never actually seen a static file-based ActivityPub server, so you probably don't need to worry too much about that...
Also, since the canQuote policy seems to only serve as advice, it appears we can't make it approval-free... :(
(Please let me know if there are any errors in this; it would be helpful.)
😂
When SQLSpec is stable, I want use this for application...🤔
🤔
apmodel isn't parse json as JSON-LD, If parse as JSON-LD, I should make JSON-LD parser... 🫠 (pyld is not maintenanced, rdflib is... I'm not tested this🫠)
sqlspec is can use for migration?🤔
Anyone know how test the signature implemention in CI?
I want add test with another signature implemention for real-world test.
調査中
Mastodonでメンションが通知される条件て何なんだろ
まぁ念の為typeフィールドのチェック自体入れるつもりだけど (例えばtypeが指定されてた場合はそのtypeの一致もチェックで効力するみたいな?少なくともActor関連はtype違いのモデルがあるから必須になる)
とはいえそれは微妙な気も
apmodelを改良して、読み込み部分の読み込みの方法を変えてる
将来的にはtypeキーがなくても動くようになるかも
Typeをもとに推測する形式のloaderだと限界があることが分かったのでその方法はやめる
issue来てて気づいたんだけど、Mastodonの公開鍵をapmodelが検出できない
どこかのZから始まるウェブサイトみたいになっちゃった...
Anyone have same errors Astro running in Bun?
I can't know how reproduce this...
Bun Canary v1.2.24-canary.26 (e3a1ae09) Windows x64
Windows v.win11_dt
CPU: sse42 avx avx2 avx512
Args: "node" "F:\amasecc\foxtail\node_modules\astro\astro.js" "dev"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(115) http_server jsc spawn(3) transpiler_cache(28) tsconfig process_dlopen(3)
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:perf_hooks" "node:process" "node:querystring" "node:readline" "node:stream" "node:tls" "node:tty" "node:url" "node:util" "node:vm" "node:zlib" "node:worker_threads" "ws" "node:v8" "node:http2"
Elapsed: 1791059ms | User: 47062ms | Sys: 25015ms
RSS: 1.45GB | Peak: 1.55GB | Commit: 1.41GB | Faults: 1572143 | Machine: 68.34GB
panic(main thread): Segmentation fault at address 0x2E
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.2.24/wn2e3a1ae04gBugk0ggC228qyB+3p8wB__0omt2CA2A8C
error: script "dev" exited with code 3
PinnedなリポジトリをFeaturedに入れるようにした (自動化してある)
Gatsby使ってるけど放棄されてるとかあるし他のに変えても良さそう (Nextとか?)
えー
Mastodon APIのStreaming実装してるのにPhanpyとかElkだと接続した瞬間切断されて動かないしログがスパムみたいになってる
GINインデックス貼るようにして検索を実装した
I'm currently not published kagura backend code. reason is simple, source code is cluttered and, hardcode hell.
To avoid the issues with AGPL-3.0, we adopted MPL-2.0 for My Software.
複数種類のRDB対応しようにもJobQueueの問題が出てきたのでPostgres Onlyにする (暫定的)
IceshrimpをMisskeyにする苦行をしたい方は是非
観賞用サーバーの完成です
冗談抜きで面倒





