Skip to content

Commit

Permalink
Re-attempt fix annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
otaliptus committed Dec 26, 2023
1 parent 0cd6f56 commit 88f4204
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/frontend/src/components/PostCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const PostCard = ({ post, currentUser, onUpvote, onDownvote }) => {
useEffect(() => {
const loadAnnotations = async () => {
try {
const response = await getAnnotationsByTarget(`https://game-lounge.com:9090/post/${post.postId}`)
const response = await getAnnotationsByTarget(`http://167.99.242.175:8080/post/${post.postId}`)

const transformedAnnotations = response.data.map((annotation) => ({
startIndex: annotation.target.selector.start,
Expand Down Expand Up @@ -83,7 +83,7 @@ const PostCard = ({ post, currentUser, onUpvote, onDownvote }) => {
id: annotationUuid, // Use generated UUID
type: 'Annotation',
motivation: ['commenting', 'annotating'],
creator: `https://game-lounge.com:9090/user/${username}`, // Use fetched username
creator: `http://167.99.242.175:8080/user/${username}`, // Use fetched username
created: new Date().toISOString(),
body: [
{
Expand All @@ -96,7 +96,7 @@ const PostCard = ({ post, currentUser, onUpvote, onDownvote }) => {
}
],
target: {
id: `https://game-lounge.com:9090/post/${post.postId}`,
id: `http://167.99.242.175:8080/post/${post.postId}`,
format: 'text/html',
language: 'en',
selector: {
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/services/AnnotationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import axios from 'axios'

const axiosInstance = axios.create({
// baseURL: process.env.REACT_APP_API_URL
// baseURL: 'https://game-lounge.com:9091'
baseURL: 'http://167.99.242.175:8081/'
baseURL: 'https://game-lounge.com:9091'
// baseURL: 'http://167.99.242.175:8081/'
})

axiosInstance.defaults.withCredentials = true
Expand Down

0 comments on commit 88f4204

Please sign in to comment.