Skip to content

Commit

Permalink
.....
Browse files Browse the repository at this point in the history
  • Loading branch information
Nourmasrieh committed May 23, 2023
1 parent 34bc040 commit f2346a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/DataObjects/FacebookProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ public function RequestFreshData()
$file->publishFile();
$newpost->BildID = $fileID;
}
/*$content = $posts['message'];
$content1 = preg_replace('/[^\p{L}\p{N}\s]/u', '', $content);
$newpost->Message = $content1;*/
$newpost->Message = $posts["message"];
$content = $posts['message'];
$content1 = trim(ucfirst(preg_replace('/[^A-Za-zÄ-Üä-ü-!-?-#-.\s]/u', '', $content)));
//Debug::dump($content1);die;
$newpost->Message = $content1;
$newpost->CreatedDate = $posts["updated_time"];
$newpost->UserName = $posts["username"];
$newpost->PlatformLink = $posts["permalink_url"];
Expand Down
11 changes: 5 additions & 6 deletions src/DataObjects/InstagramProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ public function RequestFreshData()
$newpost->BildID = $fileID;
}
}
/*$content = $posts['caption'];
$content1 = preg_replace('/[^\p{L}\p{N}\s]/u', '', $content);
$newpost->Message = $content1;*/
$newpost->Message = $posts["caption"];
Debug::dump($newpost->Message);die;
$content = $posts['caption'];
$content1 = trim(ucfirst(preg_replace('/[^A-Za-zÄ-Üä-ü-!-?-#-.\s]/u', '', $content)));
//Debug::dump($content1);
$newpost->Message = $content1;
$newpost->CreatedDate = $posts["timestamp"];
$newpost->PlatformLink = $posts["permalink"];
$newpost->Platform = "instagram";
Expand All @@ -117,7 +116,7 @@ public function RequestFreshData()
$newpost->write();
}
}

die;
}
echo 'Fishing all Instagram Posts <br>';
}
Expand Down

0 comments on commit f2346a2

Please sign in to comment.