forked from cory/tildefriends
		
	Support setting publicWebHosting, and kill some unused code.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4318 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		| @@ -103,24 +103,6 @@ class TfProfileElement extends LitElement { | |||||||
| 		input.click(); | 		input.click(); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	format_message(message) { |  | ||||||
| 		let out = { |  | ||||||
| 			previous: message.previous ?? null, |  | ||||||
| 		}; |  | ||||||
| 		if (message.sequence_before_author) { |  | ||||||
| 			out.sequence = message.sequence; |  | ||||||
| 			out.author = message.author; |  | ||||||
| 		} else { |  | ||||||
| 			out.author = message.author; |  | ||||||
| 			out.sequence = message.sequence; |  | ||||||
| 		} |  | ||||||
| 		out.timestamp = message.timestamp; |  | ||||||
| 		out.hash = message.hash; |  | ||||||
| 		out.content = JSON.parse(message.content); |  | ||||||
| 		out.signature = message.signature; |  | ||||||
| 		return out; |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	render() { | 	render() { | ||||||
| 		let self = this; | 		let self = this; | ||||||
| 		let profile = this.users[this.id] || {}; | 		let profile = this.users[this.id] || {}; | ||||||
| @@ -166,6 +148,10 @@ class TfProfileElement extends LitElement { | |||||||
| 					<div><label for="description">Description:</label></div> | 					<div><label for="description">Description:</label></div> | ||||||
| 					<textarea id="description" @input=${event => this.editing = Object.assign({}, this.editing, {description: event.srcElement.value})}>${this.editing.description}</textarea> | 					<textarea id="description" @input=${event => this.editing = Object.assign({}, this.editing, {description: event.srcElement.value})}>${this.editing.description}</textarea> | ||||||
| 				</div> | 				</div> | ||||||
|  | 				<div> | ||||||
|  | 					<label for="public_web_hosting">Public Web Hosting:</label> | ||||||
|  | 					<input type="checkbox" id="public_web_hosting" value=${this.editing.public_web_hosting} @input=${event => this.editing = Object.assign({}, this.editing, {publicWebHosting: event.srcElement.checked})}></input> | ||||||
|  | 				</div> | ||||||
| 				<input type="button" value="Attach Image" @click=${this.attach_image}></input> | 				<input type="button" value="Attach Image" @click=${this.attach_image}></input> | ||||||
| 			</div>` : null; | 			</div>` : null; | ||||||
| 		let image = typeof(profile.image) == 'string' ? profile.image : profile.image?.link; | 		let image = typeof(profile.image) == 'string' ? profile.image : profile.image?.link; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user