✨ Post recommendation widget
This commit is contained in:
14
ios/Runner/Service/Attachment.swift
Normal file
14
ios/Runner/Service/Attachment.swift
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Attachment.swift
|
||||
// Runner
|
||||
//
|
||||
// Created by LittleSheep on 2024/12/14.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
func getAttachmentUrl(for identifier: String) -> String {
|
||||
let serverBaseUrl = "https://api.sn.solsynth.dev"
|
||||
|
||||
return identifier.starts(with: "http") ? identifier : "\(serverBaseUrl)/cgi/uc/attachments/\(identifier)"
|
||||
}
|
Reference in New Issue
Block a user