Browse Source

Remove cached user page

master
Jens Pitkänen 1 year ago
parent
commit
694869ce13
6 changed files with 7 additions and 104 deletions
  1. +2
    -10
      Caddyfile
  2. +1
    -6
      public/410.html
  3. +4
    -0
      public/style.css
  4. BIN
      public/users/icon.png
  5. BIN
      public/users/image.png
  6. +0
    -88
      public/users/neon.json

+ 2
- 10
Caddyfile View File

@@ -1,15 +1,7 @@
*:8081 {
ext .json
mime .json application/activity+json
root public
rewrite {
if {path} not /users/neon
if {path} not /users/neon.json
if {path} not /users/image.png
if {path} not /users/icon.png
to /gone
}
status 410 /gone
rewrite not /style.css /410
status 410 /410
errors {
410 410.html
}


+ 1
- 6
public/410.html View File

@@ -4,12 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>410 Gone</title>
<style>
body {
max-width: 40em;
margin: auto;
}
</style>
<link rel="stylesheet" type="text/css" href="/style.css">
</head>
<body>
<h1>410 Gone</h1>


+ 4
- 0
public/style.css View File

@@ -0,0 +1,4 @@
body {
max-width: 40em;
margin: auto;
}

BIN
public/users/icon.png View File

Before After
Width: 385  |  Height: 385  |  Size: 171KB

BIN
public/users/image.png View File

Before After
Width: 750  |  Height: 359  |  Size: 468KB

+ 0
- 88
public/users/neon.json View File

@@ -1,88 +0,0 @@
{
"@context":[
"https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"manuallyApprovesFollowers":"as:manuallyApprovesFollowers",
"toot":"http://joinmastodon.org/ns#",
"featured":{
"@id":"toot:featured",
"@type":"@id"
},
"alsoKnownAs":{
"@id":"as:alsoKnownAs",
"@type":"@id"
},
"movedTo":{
"@id":"as:movedTo",
"@type":"@id"
},
"schema":"http://schema.org#",
"PropertyValue":"schema:PropertyValue",
"value":"schema:value",
"Hashtag":"as:Hashtag",
"Emoji":"toot:Emoji",
"IdentityProof":"toot:IdentityProof",
"focalPoint":{
"@container":"@list",
"@id":"toot:focalPoint"
}
}
],
"id":"https://moe.neon.moe/users/neon",
"type":"Person",
"following":"https://moe.neon.moe/users/neon/following",
"followers":"https://moe.neon.moe/users/neon/followers",
"inbox":"https://moe.neon.moe/users/neon/inbox",
"outbox":"https://moe.neon.moe/users/neon/outbox",
"featured":"https://moe.neon.moe/users/neon/collections/featured",
"preferredUsername":"neon",
"name":"Neon",
"summary":"\u003cp\u003eWriting games and doing math. Call me Jens or Neon. Remember to floss!\u003c/p\u003e",
"url":"https://moe.neon.moe/@neon",
"manuallyApprovesFollowers":false,
"movedTo":"https://fedi.neon.moe/users/neon",
"publicKey":{
"id":"https://moe.neon.moe/users/neon#main-key",
"owner":"https://moe.neon.moe/users/neon",
"publicKeyPem":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3NSQ7jumLm78yGVqUWHR\nnyDrNuIfr3xapMTTdMQlj9jVQtxrNpNzI6MfGRuDiioUexQlPLqxbUMAZxIPX3sN\nm1S+Kh1a776Zbfs9skEiUwTD6nthOHpKPWDSxMc2Cfz7s2efZMv8jtQ+dX192s6l\nEMPro8/rLgwswaCfrkBbYqAId238xQVGGIuTdH944nOhzF6q6+/rXAzkfl7EWOvg\nkBfVGkKjzGpkh6GcefG32KugUeVLi8c2jbYzSqyJ/oyt3KcAAaK9bOEeVQYVBuTA\n2HyGkf29j8AVEntHAiaNZws2ldxHdZkiEmPKGRRif7D06g/5xpxAWLFC+eja7QFX\nNwIDAQAB\n-----END PUBLIC KEY-----\n"
},
"tag":[

],
"attachment":[
{
"type":"PropertyValue",
"name":"Website",
"value":"\u003ca href=\"https://neon.moe\" rel=\"me nofollow noopener\" target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttps://\u003c/span\u003e\u003cspan class=\"\"\u003eneon.moe\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e"
},
{
"type":"PropertyValue",
"name":"Games",
"value":"\u003ca href=\"https://nc.itch.io\" rel=\"me nofollow noopener\" target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttps://\u003c/span\u003e\u003cspan class=\"\"\u003enc.itch.io\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e"
},
{
"type":"PropertyValue",
"name":"Code",
"value":"\u003ca href=\"https://git.neon.moe/neon\" rel=\"me nofollow noopener\" target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttps://\u003c/span\u003e\u003cspan class=\"\"\u003egit.neon.moe/neon\u003c/span\u003e\u003cspan class=\"invisible\"\u003e\u003c/span\u003e\u003c/a\u003e"
},
{
"type":"PropertyValue",
"name":"Pronouns",
"value":"he/him"
}
],
"endpoints":{
"sharedInbox":"https://moe.neon.moe/inbox"
},
"icon":{
"type":"Image",
"mediaType":"image/png",
"url":"https://moe.neon.moe/users/icon.png"
},
"image":{
"type":"Image",
"mediaType":"image/png",
"url":"https://moe.neon.moe/users/image.png"
}
}

Loading…
Cancel
Save