{
  "$type": "site.standard.document",
  "canonicalUrl": "https://blog.nove-b.dev//posts/mastodon-change-favicon",
  "description": "マストドンのfaviconを変更する",
  "path": "/posts/mastodon-change-favicon",
  "publishedAt": "2024-10-20T00:00:00.000Z",
  "site": "at://did:plc:2atly2y5kfyjcj5zap6pv4wd/site.standard.publication/3mmxeqr2tcb2k",
  "tags": [
    "mastodon",
    "favicon"
  ],
  "textContent": "せっかくのおひとり様サーバーなので好き勝手実験したいということでまずはfaviconを変更することにした。\n\nエックスサーバーVPSのMastodonアプリイメージを使用したので、どこにmastodon本体があるかわからなかったが、色々検索した結果、/home/mastodon/live/に存在することが分かった。\n\nRemote - SSHを使用し、対象のディレクトリに移動後、faviconを置き換え、sudo systemctl restart mastodon-を実行。\n\n確認するけど、変更されていない。\n\nソースを見るとfaviconは変更されているけど、\n\nfavicon.ico以外にも複数の画像を読み込んでいるらしいことが分かった。\n\n仕方がないので全ファイル分作成し、同様の画像名にし、置換。\n\nsudo systemctl restart mastodon-を実行し無事にfaviconが反映されていることを確認した。\n\n---\n\nMastodonをアップデートするたびに更新されるので、意味ない気がする。\n\n変更した後に気が付いたけど、まあいいや。\n\n<iframe src=\"https://social.nove-b.dev/@nove_b/113334955593169076/embed\" class=\"mastodon-embed\" style=\"max-width: 100%; border: 0\" width=\"400\" allowfullscreen=\"allowfullscreen\"></iframe><script src=\"https://social.nove-b.dev/embed.js\" async=\"async\"></script>\n\n<iframe src=\"https://social.nove-b.dev/@nove_b/113334977285416957/embed\" class=\"mastodon-embed\" style=\"max-width: 100%; border: 0\" width=\"400\" allowfullscreen=\"allowfullscreen\"></iframe><script src=\"https://social.nove-b.dev/embed.js\" async=\"async\"></script>",
  "title": "マストドンのfaviconを変更する"
}